package cn.edu.nju.ws.sview.wyge.relations.adataset.overview.dataGet;

import java.util.ArrayList;

public class triple {
	public Integer from, to;
	public String prop;
	public Integer w;

	triple() {
		w = 0;
	}

	boolean partial(ArrayList<concept> concepts, triple a) {
		if (prop != a.prop)
			return false;
		if (!concepts.get(a.from).ancestor.contains(from))
			return false;
		if (!concepts.get(a.to).ancestor.contains(to))
			return false;
		return true;
	}
}
